using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace Fotka.Uploader
{
    public partial class FormLogin : Form
    {
        private Thread thrGo;
        private Fotka fotka = new Fotka();

        public FormLogin()
        {
            fotka.FormLogin = this;
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void btnZaloguj_Click(object sender, EventArgs e)
        {
            btnZaloguj.Enabled = false;
            fotka.login = txtLogin.Text;
            fotka.passowrd = txtPassword.Text;
            thrGo = new Thread(fotka.go);
            thrGo.Start();
        }
    }
}